package com.ruoyi.wechat.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;


/**
 * 商品超市对象 c_product
 *
 * @author ruoyi
 * @date 2024-12-24
 */
public class ProductLeaseOrder extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** ID */
    private String oId;

    /** 订单ID */
    private String orderId;

    /** 商品ID */
    private String productId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String userId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal productPrice;

    /** 商品详情 */
    @Excel(name = "商品详情")
    private String productDetails;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String imageUrl;

    /** 租赁时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "租赁时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date leaseOrderTime;

    /** 商品总价 */
    @Excel(name = "商品价格")
    private Long totalPrice;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long productNumber;

    public String getoId() {
        return oId;
    }

    public void setoId(String oId) {
        this.oId = oId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public BigDecimal getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(BigDecimal productPrice) {
        this.productPrice = productPrice;
    }

    public String getProductDetails() {
        return productDetails;
    }

    public void setProductDetails(String productDetails) {
        this.productDetails = productDetails;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public Date getLeaseOrderTime() {
        return leaseOrderTime;
    }

    public void setLeaseOrderTime(Date leaseOrderTime) {
        this.leaseOrderTime = leaseOrderTime;
    }

    public Long getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Long totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Long getProductNumber() {
        return productNumber;
    }

    public void setProductNumber(Long productNumber) {
        this.productNumber = productNumber;
    }

    @Override
    public String toString() {
        return "ProductLeaseOrder{" +
                "oId='" + oId + '\'' +
                ", orderId='" + orderId + '\'' +
                ", productId='" + productId + '\'' +
                ", userId='" + userId + '\'' +
                ", productName='" + productName + '\'' +
                ", productPrice=" + productPrice +
                ", productDetails='" + productDetails + '\'' +
                ", imageUrl='" + imageUrl + '\'' +
                ", leaseOrderTime=" + leaseOrderTime +
                ", totalPrice=" + totalPrice +
                ", productNumber=" + productNumber +
                '}';
    }
}
